<?php

namespace App\Constants\Redis;

class TempRedisCode
{

    public static function routeRateLimit($key)
    {
        return 'k001:' . $key;
    }

    public static function addRouteLock($adminId)
    {
        return 'k002:' . $adminId;
    }

    public static function saveRoleRoutes($roleId)
    {
        return 'k003:'.$roleId;
    }

    public static function adminLogin($acc)
    {
        return 'k004:'.$acc;
    }

    public static function adminPwdLoginWrongInputKey($acc)
    {
        return 'k005:'. $acc;
    }

    public static function jtiKey($uniKey)
    {
        return 'k006:'. $uniKey;
    }

    // 防抖
    public static function refreshAdminTokenLock($jti)
    {
        return 'k008:'. $jti;
    }

    public static function addAdLock($adminId)
    {
        return 'k009:'.$adminId;
    }

    public static function addCategoryLock($adminId)
    {
        return 'k010:'. $adminId;
    }

    public static function addNoticeLock($adminId)
    {
        return 'k011:'. $adminId;
    }
}